import { FormSchema } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload';


/**
 * 表单字段定义
*/
export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'ID',
    component: 'Input',
    show: false,
  },
  {
    field: 'contract.formNo',
    label: '合同编号',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'contract.clientName',
    label: '委托单位',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'contract.projectType',
    label: '委托业务',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'contract.clientManager',
    label: '联系人及电话',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'contract.clientAddress',
    label: '地址',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'contract.companyName',
    label: '我方单位',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'payTime',
    label: '收款日期',
    required: true,
    component: 'DatePicker',
    colProps: { span: 24 },
  },
  {
    field: 'payType',
    label: '收款方式',
    required: true,
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '浙江浦江安环检测科技股份有限公司',
          value: '浙江浦江安环检测科技股份有限公司',
          key: '1',
        },
        {
          label: '浙江浦江安环检测科技股份有限公司扫码',
          value: '浙江浦江安环检测科技股份有限公司扫码',
          key: '2',
        },
        {
          label: '金华沣安安全咨询有限公司',
          value: '金华沣安安全咨询有限公司',
          key: '3',
        },
        {
          label: '金华沣安安全咨询有限公司扫码',
          value: '金华沣安安全咨询有限公司扫码',
          key: '4',
        },
        {
          label: '金华职环安全咨询有限公司',
          value: '金华职环安全咨询有限公司',
          key: '5',
        },
        {
          label: '金华职环安全咨询有限公司扫码',
          value: '金华职环安全咨询有限公司扫码',
          key: '6',
        },

      ],
    },
  },
  {
    field: 'payAmount',
    label: '收款合计（元）',
    helpMessage: '不同委托业务的收款金额的总和',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'payFileList',
    label: '附件',
    component: 'Upload',
    colProps: { span: 24 },
    componentProps: {
      api: uploadApi,
    },
  },
  {
    field: 'payRemark',
    label: '备注',
    component: 'InputTextArea',
  },

];




